package demo8;

import java.util.Random;

public class Test {
    public static void main(String[] args) {
        Random random = new Random();
        int i = 5;
        while (i-- > 0) {
            int randNum = random.nextInt(10)+21;
            System.out.println(randNum);
        }
    }
}
